package com.liy.supercloud.ssoclient.feign;

import com.liy.framework.common.extvo.ResultVO;
import com.liy.supercloud.ssoclient.config.SpringMvcFeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "sso", configuration = {SpringMvcFeignConfiguration.class}, fallbackFactory = AuthorizationFeignClientFallbackFactory.class)
public interface AuthorizationFeignClient {



    @RequestMapping(method = {RequestMethod.POST}, value = {"/auth/authorization"})
    ResultVO authorization(@RequestParam("token") String var1);



    @RequestMapping(value = {"/auth/authorization/hasPermission"}, method = {RequestMethod.POST})
    ResultVO hasPermission(@RequestParam("token") String var1, @RequestParam("code") String var2);



    @RequestMapping(value = {"/auth/authorization/userPubKey"}, method = {RequestMethod.POST})
    ResultVO getUserPublicKey(@RequestParam("clientId") String var1, @RequestParam("secret") String var2);



    @RequestMapping(value = {"/auth/resources/sync"}, method = {RequestMethod.POST})
    ResultVO permissionSync(@RequestBody Object var1);
}
